package com.example.demo;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class proties_exercise {
    @Value("${mykey.key}")
    String s;

@Value("${string.s1}")
    String s1;
@Value("${string.s2}")
String s2;
@Value("${string.s3}")
String s3;
@Autowired
Student student;
    @RequestMapping("t1")
    public String t1(){
        return s;
    }
    @RequestMapping("t2")
    public String t2(){
        System.out.println(s1+" "+s2+" "+s3);
        return "yml";
    }
    @RequestMapping("t3")
    public Student t3(){
        return student;
    }

}
